package org.example;

public class Test1 {
    public static void main(String[] args) throws InterruptedException {
        Object obj = new Object();
        synchronized ( obj){
            System.out.println("等待中");
            obj.wait();
            System.out.println("被唤醒");
        }
    }
}
